package org.example.curriculum_design_6_16.common.handler;

/**
 * 错误码枚举
 */
public enum ErrorCode {
    // 系统级
    SYSTEM_ERROR("SYS_000", "系统错误"),

    // 认证
    UNAUTHORIZED("AUTH_001", "未授权"),

    // 业务
    PARAM_ERROR("BIZ_001", "参数错误");

    private final String code;
    private final String desc;

    ErrorCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    // Getters
    public String getCode() { return code; }
    public String getDesc() { return desc; }
}